Create and run a GitHub Actions workflow.
Automation is key for repetitive tasks like testing, scanning, review, and deployment processes, and GitHub Actions is the best way to streamline that workflow.
- Who is this for: Developers, DevOps engineers, Security engineers
- What you'll learn: How to create GitHub Actions workflows, how to run them, and how to use them to automate tasks.
- What you'll build: An Actions workflow that will comment on a pull request when it is created.
- Prerequisites: Introduction to GitHub
- How long: This exercise can be finished in less than 30min.
In this exercise, you will:
- Create a workflow file
- Add a job
- Add a run step
- See the workflow run
- Merge your pull request
Simply copy the exercise to your account, then give your favorite Octocat (Mona) about 20 seconds to prepare the first lesson, then refresh the page.
Having trouble? 🤷
When copying the exercise, we recommend the following settings:
-
For owner, choose your personal account or an organization to host the repository.
-
We recommend creating a public repository, since private repositories will use Actions minutes.
If the exercise isn't ready in 20 seconds, please check the Actions tab.
-
Check to see if a job is running. Sometimes it simply takes a bit longer.
-
If the page shows a failed job, please submit an issue. Nice, you found a bug! 🐛
© 2025 GitHub • Code of Conduct • MIT License